package cn.kailangtu.myapplication;

import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import cn.kailangtu.myapplication.data.CanDataManager;
import cn.kailangtu.myapplication.services.SerialDataService;
import cn.kailangtu.myapplication.services.Service_Rs485_1;
import cn.kailangtu.myapplication.tools.APPSPUtils;
import cn.kailangtu.myapplication.tools.AppUtils;
import cn.kailangtu.myapplication.tools.CrashHandler;

public class MyApplication extends Application {

//声音播放插件
    public static Context ApplicationContext;

    @Override
    public void onCreate() {

        super.onCreate();
        //声音播放
        MyApplication.ApplicationContext = this;

        APPSPUtils.getInstance().init(this);



        AppUtils.getInstance().setContext(this);
        AppUtils.getInstance().setApplication(this);
        AppUtils.getInstance().startBzAppIsTopThread();

        CrashHandler.active(this);

        //CanDataManager.getInstance().test();
    }
}
